#pragma once

#include "Sock\Sock.h"

class TcpServer: private SYS::CThread, private SYS::CGuarded
{
public:
    TcpServer();
    ~TcpServer();

    void Start(u_short port);
    bool IsStarted();
    void Send(const char* pData, int size);   
    void Stop();

private:
    u_short port;
    std::vector<CSockTCP*> clients;

    virtual void Run();
};
